// import { request } from "@/utils/request";
import { request } from "../../utils/http";

/**@description  获取机构字典 */
const getAllOrgan = (data: any = {}, config: any = {}) => {
  return request.post("/api/getAllChcsOrgan", data, config);
};

/**@description  根据医生id获取机构和团队 */
const getOrgnInfoByDr = (data: { doctorId: string }, config: any = {}) => {
  return request.post("/api/getDefaultTeamIdByDoctorId", data, config);
};

/**@description  根据预约医生id查询机构和团队名字 */
const getOrgnInfoByDrid = (data: { id: string }, config: any = {}) => {
  return request.post("/api/getDoctorDefaultTeamOrgById", data, config);
};
export { getAllOrgan, getOrgnInfoByDr, getOrgnInfoByDrid };
